#pragma once
#include "car.h"
class SportsCar : public Car
{
private:
	double maxSpeed;
public:

	SportsCar(void)
	{
		this->maxSpeed = 0;
	}

	SportsCar( string brand, int year, double purchasingPrice, double sellingPrice, int seats, int doors, double maxSpeed )
	{
		this->brand = brand;
		this->year = year;
		this->purchasingPrice = purchasingPrice;
		this->sellingPrice = sellingPrice;
		this->seats = seats;
		this->doors = doors;
		this->maxSpeed = maxSpeed;
	}

	~SportsCar(void)
	{
	}

	void Print( ostream& out )
	{
		out << "Sportscar:" << endl;
		out << "Brand - " << this->GetBrand() << endl;
		out << "Year - " << this->GetYear() << endl;
		out << "Purchasing price - " << this->GetPurchasingPrice() << " Thousand SEK" << endl;
		out << "Selling Price - " << this->GetSellingPrice() << " Thousand SEK" << endl;
		out << "Seats - " << this->GetSeats() << endl;
		out << "Doors - " << this->GetDoors() << endl;
		out << "Max Speed - " << this->GetMaxSpeed() << endl << endl;
	}

	double GetMaxSpeed() { return this->maxSpeed; }
	void SetMaxSpeed( double speed ) { this->maxSpeed = speed; }
};

